/*
 * GenerateThings.java
 *
 * Created on May 6, 2007, 6:00 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package labirinto;

import javax.swing.ImageIcon;

/**
 *
 * @author thiago
 */
public class GenerateThings
{
    
    /** Creates a new instance of GenerateThings */
    public GenerateThings()
    {
    }
    
    public Thing[] generateThings()
    {
        Thing menuThings[] = new Thing[15];
        /*-------------------------------------------------------------
         * Aqui montamos os tipo de objetos que podem existir
         *-------------------------------------------------------------
         */
        Thing myThing = new Thing();
        myThing.setId('A'); /* Setar o ID */
        myThing.setStopLeftIcon(new ImageIcon(getClass().getResource("/madeira.jpg")));
        myThing.setStopRightIcon(new ImageIcon(getClass().getResource("/madeira.jpg")));
        myThing.setIsConcrete(true);
        menuThings[0] = myThing;
        
        myThing = new Thing();
        myThing.setId('B'); /* Setar o ID */
        myThing.setStopLeftIcon(new ImageIcon(getClass().getResource("/redbox.gif")));
        myThing.setStopRightIcon(new ImageIcon(getClass().getResource("/redbox.gif")));
        myThing.setIsItem(true);
        myThing.setSpecialItem(Thing.SPECIAL_ITEM.UpLife);
        menuThings[1] = myThing;
        
        myThing = new Thing();
        myThing.setId('C'); /* Setar o ID */
        myThing.setStopLeftIcon(new ImageIcon(getClass().getResource("/fire.gif")));
        myThing.setStopRightIcon(new ImageIcon(getClass().getResource("/fire.gif")));
        myThing.setIsOpponent(true);
        myThing.setOpponentType(Thing.OPPONENT_TYPE.Static);
        menuThings[2] = myThing;

        myThing = new Thing();
        myThing.setId('D'); /* Setar o ID */
        myThing.setStopLeftIcon(new ImageIcon(this.getClass().getResource("/door.gif")));
        myThing.setStopRightIcon(new ImageIcon(this.getClass().getResource("/door.gif")));
        myThing.setIsDoor(true);
        menuThings[3] = myThing;

        myThing = new Thing();
        myThing.setId('E'); /* Setar o ID */
        myThing.setStopLeftIcon(new ImageIcon(this.getClass().getResource("/anishellcreeper.gif")));
        myThing.setStopRightIcon(new ImageIcon(this.getClass().getResource("/anishellcreeper.gif")));
        myThing.setIsDoor(true);
        menuThings[4] = myThing;
        
        
        return menuThings;
    }
    
}
